<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<h:body>

	<ui:composition template="/commonLayout.xhtml">
		<ui:define name="content">
			<div class="texte">
				<ui:repeat var="var" value="#{article.articles}">
					<blockquote class="#{var.misEnAvant}">
						<p>
							<strong><h:outputText value="#{var.titre}"></h:outputText></strong>
							<p:outputPanel rendered="#{var.nouveau}"><span class="marginleft5 label label-success">Nouveau</span></p:outputPanel>
							<br /> <small><i><h:outputText
										value="Le "></h:outputText><h:outputText
										value="#{var.date}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/></h:outputText></i></small> <small><h:outputText
									value="#{var.sousTitre}"></h:outputText></small>
							<table>
								<tr>
									<td><h:graphicImage url="resources/images/#{var.image}"></h:graphicImage></td>
									<td style="vertical-align: text-top; text-align: justify;"><h:outputText
											value="#{var.texte}" escape="false"></h:outputText></td>
								</tr>
							</table>
						</p>
					</blockquote>
				</ui:repeat>
			</div>
		</ui:define>
	</ui:composition>

</h:body>
</html>